/*
 * @Description: User
 * 
 * @Author: rendc
 * 
 * @Date: 2024-11-19 15:35:08
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2024-11-19 15:38:55
 */
package com.briup;

public class User {
  private int id;
  private String name;
  private String password;
  private int age;

  // 无参构造器
  public User() {
  };

  // 全参构造器
  public User(int id, String name, String password, int age) {
    this.id = id;
    this.name = name;
    this.password = password;
    this.age = age;
  }

  @Override
  public String toString() {
    return "User [id=" + id +
        ", name=" + name +
        ", password=" + password +
        ", age=" + age +
        "]";
  }
}